#include<stdio.h>

int main(){

   float Area,lenth,width,Perimeter;
   scanf("%f%f",&lenth,&width);
   Perimeter=2*(lenth+width);
    Area=lenth*width;
   printf("Area=%.3f,Perimeter=%.3f\n",Area,Perimeter);
    return 0;
}